package com.xd.entity;


import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import lombok.Data;

@Data
@Entity
@EntityListeners(AuditingEntityListener.class)
public class Homework {
@Id
@GeneratedValue
private Long id;

private Long stuid;
private String name;
private String homework;
@CreatedDate
private Date  createTime;
@LastModifiedDate
private Date updateTime;
private float score;


//由于STS的lombok配置问题，所以这边加了data注释还是写getset方法
public Long getId() {
	return id;
}
public void setId(Long id) {
	this.id = id;
}
public Long getStuid() {
	return stuid;
}
public void setStuid(Long stuid) {
	this.stuid = stuid;
}
public String getName() {
	return name;
}
public void setName(String name) {
	this.name = name;
}
public String getHomework() {
	return homework;
}
public void setHomework(String homework) {
	this.homework = homework;
}

public Date getCreateTime() {
	return createTime;
}
public void setCreateTime(Date createTime) {
	this.createTime = createTime;
}
public Date getUpdateTime() {
	return updateTime;
}
public void setUpdateTime(Date updateTime) {
	this.updateTime = updateTime;
}
public float getScore() {
	return score;
}
public void setScore(float score) {
	this.score = score;
}
	
}
